<?xml version="1.0" encoding="windows-1251"?>

<xsl:stylesheet version="1.0"  
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> 
<xsl:param name="xsKey"/>


<xsl:template match="/">

<xsl:for-each select="apm/resources/entry[@key=$xsKey]">


<table border = "0" cellspacing="0" class="wsdlTable">
    <tr>
        <td colspan="2"  class="wsdlTitle">WebService Info :: <xsl:value-of select="@label"/></td>
    </tr>

    <tr>
        <td colspan="2"  class="wsdlGroup">Common information</td>
    </tr>

    <tr>
        <td class="wsdlKey">Key</td>
        <td class="wsdlValue"><xsl:value-of select="@key"/></td>
    </tr>

    <tr>
        <td class="wsdlKey">Label</td>
        <td class="wsdlValue"><xsl:value-of select="@label"/></td>
    </tr>

    <tr>
        <td class="wsdlKey">Description</td>
        <td class="wsdlValue"><xsl:value-of select="description"/></td>
    </tr>

    <tr>
        <td class="wsdlKey">Host</td>
        <td class="wsdlValue"><xsl:value-of select="host"/></td>
    </tr>

    <tr>
        <td class="wsdlKey">WSDL</td>
        <td class="wsdlValue">
        	<a>
			<xsl:attribute name="href">
			<xsl:value-of select="url"/>
			</xsl:attribute>

        		<xsl:value-of select="url"/>
        	</a>
        </td>
    </tr>

    <tr>
        <td class="wsdlKey">WSDL View</td>
        <td class="wsdlValue">
        	<a>
			<xsl:attribute name="href">
			xsl.php?xml=<xsl:value-of select="url"/>&amp;xsl=./style/common/wsdl-viewer.xsl
			</xsl:attribute>

                	<img src="img/wsdl.gif" border="0" title="WSDL Viewer"/>
        	</a>
        </td>
    </tr>
    <xsl:if test="sla">
    <tr>
        <td colspan="2"  class="wsdlGroup">S.L.A. information</td>
    </tr>

    <tr>
        <td colspan="2"  class="wsdlSubgroup">Normal load</td>
    </tr>

    <tr>
        <td class="wsdlKey">Time response (seconds)</td>
        <td class="wsdlValue"> <xsl:value-of select="sla/normal/time-response"/> </td>
    </tr>

    <tr>
        <td class="wsdlKey">Message count (hour)</td>
        <td class="wsdlValue"> <xsl:value-of select="sla/normal/message-count"/> </td>
    </tr>

    <tr>
        <td class="wsdlKey">Message size (kb)</td>
        <td class="wsdlValue"> <xsl:value-of select="sla/normal/message-size"/> </td>
    </tr>


    <tr>
        <td colspan="2"  class="wsdlSubgroup">Critical load</td>
    </tr>

    <tr>
        <td class="wsdlKey">Time response (seconds)</td>
        <td class="wsdlValue"> <xsl:value-of select="sla/critical/time-response"/> </td>
    </tr>

    <tr>
        <td class="wsdlKey">Message count (hour)</td>
        <td class="wsdlValue"> <xsl:value-of select="sla/critical/message-count"/> </td>
    </tr>

    <tr>
        <td class="wsdlKey">Message size (kb)</td>
        <td class="wsdlValue"> <xsl:value-of select="sla/critical/message-size"/> </td>
    </tr>
    </xsl:if>
	<xsl:for-each select="details/group">
		<tr>
			<td colspan="2" class="wsdlGroup"><xsl:value-of select="@header"/></td>
		</tr>
		<xsl:for-each select="detail">
			<xsl:if test="string(.)">
			<tr>
				<td class="wsdlKey"><xsl:value-of select="@name"/></td>
				<td class="wsdlValue"><PWiki><xsl:value-of select="."/></PWiki></td>
			</tr>
			</xsl:if>
			<xsl:if test="not(string(.))">
			<tr>
				<td colspan="2" class="wsdlSubgroup"><xsl:value-of select="@name"/></td>
			</tr>
			</xsl:if>
		</xsl:for-each>

	</xsl:for-each>


</table>


</xsl:for-each>

</xsl:template>
</xsl:stylesheet>